package com.netty.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.netty.admin.mapper.FriendMapper;
import com.netty.admin.mapper.LogMapper;
import com.netty.admin.service.FriendService;
import com.netty.admin.service.LogService;
import com.netty.common.entity.Friend;
import com.netty.common.entity.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author LiuXiaoYu
 * @date 2022/2/1- 13:33
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements LogService {


    @Autowired
    private LogMapper logMapper;
    @Override
    @Async("asyncLog")
    public void insertLog(Log logInfo) {
        logMapper.insert(logInfo);
    }
}
